

#idString Mastech,MS6514
#name Mastech MS6514
#handle MS6514
#port comfixedbaud
#baudrate 9600
#driver block
#author SpottedDick

#notes Before you connect, you need to hold "SETUP" (PC-Link) on the unit until it shows "USB" on the display otherwise it will not respond.
The temperatures shown are NOT probe 1 and probe 2. They are Main display temperature and Auxillary display temperature.For example if using the T1-T2 mode, which shows the temperature differential on the main display, this is what will be returned for MainDisp_Temp.


;Initiate command only needs to be sent once to the device, after that it will send data when PC-Link is activated on the device.
;It's stored in permenant memory and there doesn't seem to be a way to turn it off (which isn't really an issue).
#initCmd tx 0xA1
#rxStart \x65\x14
#rxLength 18
#rxFormat 5ur2 11b7 11b6 11b3 7ur2 12b7 12b6 12b3 

;The temperatures shown are NOT	probe 1 and probe 2. They are Main display temperature and Auxillary display temperature.For example if using the T1-T2 mode, which shows the temperature differential on the main display, this is what will be returned for MainDisp_Temp.
#value MainDisp_Temp. C D1
#value AuxDisp_Temp. C D1

;Ask values is not sent to the device as the device is streaming data continuously, it is used internally by temp controller.
#askValues Values?
#askValuesMathFormat makeDouble(0,1,3,2,value) +" "+makeDouble(4,5,7,6,value)